/*
 * @Author: taosong 2289713738@qq.com
 * @Date: 2024-01-25 19:57:31
 * @LastEditors: taosong 2289713738@qq.com
 * @LastEditTime: 2024-03-20 11:24:22
 * @FilePath: \Song-ui\src\components\Tooltip\type.ts
 * @Description: 
 * 
 * Copyright (c) 2024 by ${git_name_email}, All Rights Reserved. 
 */
import type { Placement, Options } from '@popperjs/core'
export interface TooltipProps {
  content?: string
  trigger?: 'hover' | 'click'
  placement: Placement
  // 是否可以手动触发
  manual?: boolean,
  // popper 配置项  把必选属性变为可选
  propperOptions?: Partial<Options>
  transition?: string
  // 操作延时
  openDelay?: number
  closeDelay?: number
}

export interface TooltipEmits {
  (e: 'visible-change', value: boolean): void
}

export interface TooltipInstance {
  show: () => void
  hide: () => void
}
